; StyleScript.cfg
; Please use this format when creating your own style scripts.

; Emulating:	Warcraft III
; Author:	Spht
; Email:	spht.vl@gmail.com
; Website:	http://www.valhallalegends.com/spht/sphtbotv3/

; Use 'copy' trigger to make "shortcuts" to text (most useful for colors).
; Colors are in blue green red order (hex).  Put &h infront of 6-digit color identifiers.
; &hNAMECO is a special identifier for other user's name, which will display color based on flags.  Specify flag colors with 'nameco' trigger.

; Variables (used in 'event' trigger):
; %1 - Event id
; %2 - Name field of event
; %3 - Text field of event
; %4 - Product for showuser, join; otherwise blank
; %5 - Parsed stats for showuser, join; otherwise blank
; %6 - Flags field of event
; %7 - Flags field of event (in hex)
; %8 - Ping field of event
; %9 - Ping field of event (in hex)
; %10 - Described channel flags


; Main window colors:
mainwindow backcolor /BLACK/
mainwindow channelnamebackcolor /BLACK/
mainwindow channelnameforecolor /YELLOW/

; Timestamp.  /time/ is an internal identifier to insert stamp:
timestamp [/time/] 
timestamp color /WHITE/
timestamp format HH:MM:SS

; Shortcut to internal color identifiers
copy /NAME/ &hNAMECO
copy /SELF/ &hMYNAME

; Warcraft III color map
copy /BLACK/ &h000000
copy /YELLOW/ &h12d3fe
copy /WHITE/ &hffffff
copy /GRAY/ &hc0c0c0
copy /GREEN/ &h00ff00
copy /BLUE/ &hffd880
copy /RED/ &h0000ff

nameco name /WHITE/	; Non-self no-flagged name (used in user list)
nameco self /WHITE/	; Self name (also used in user list)
nameco 1 /BLUE/		; Blizzard Employee
nameco 2 /WHITE/	; Channel Operator
nameco 4 /BLUE/		; Speaker
nameco 8 /BLUE/		; Battle.net System Administrator
nameco &h20 /RED/	; Squelched

; Chat events (0 is self-talk)
event 0 /yellow/%2: /white/%3
event 1 none
event 2 /gray/%2 joined the channel using %5.
event 3 /gray/%2 left the channel.
event 4 /yellow/%2 whispers: /green/%3
event 5 /yellow/%2: /white/%3
event 6 /red/Server broadcast from /yellow/%2: /white/%3
event 7 /white/Joining %10 channel: /yellow/%3
event 10 /yellow/You whisper to %2: /green/%3
event &hd /red/Channel %3 is full!
event &he /red/Channel %3 is empty!
event &Hf /red/Channel %3 is restricted!
event &h12 /blue/%3
event &h13 /red/%3
event &h17 /gray/%2 %3
event &h80 /gray/User update: %2 now has flags %7.
event &h81 /gray/Stats update: %2 is using %5.
event &h82 /red/Duplicate user %2 is here using %5
event &h83 /yellow/%2: /blue/(Hex) /white/%3
event &h84 /yellow/%2: /blue/(DMEncrypt) /white/%3

